import { Http } from '@/common/api'

export const listUrl = '/srm/dict/invoice/page'

/**
 * 新增发票
 * @param params
 * @return {*|Promise}
 */
export const apiPostAddInvoiceDict = async (params) => Http.post('/srm/dict/invoice/add', params)
/**
 * 编辑发票
 * @param params
 * @return {*|Promise}
 */
export const apiPutEditInvoiceDict = async (params) => Http.put('/srm/dict/invoice/update', params)
/**
 * 根据ID获取发票详情
 * @param id
 * @return {*|Promise}
 */
export const apiGetInvoiceDict = async (id) => Http.get(`/srm/dict/invoice/findById/${id}`)
/**
 * 根据ID删除发票
 * @param ids
 * @return {*|Promise}
 */
export const apiDeleteInvoiceDict = async (ids) => Http.delete(`/srm/dict/invoice/delete?id=${ids}`)
